<template>
  <div>
    <div ref="content">内容</div>
    <button @click="changeContent">修改内容</button>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      msg:'ikun'
    }
  },
  methods: {
    changeContent() {
      this.$refs.content.innerHTML = 'liu ge'
    }
  }
}
</script>

<style scoped>
</style>